/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.ArrayList;
import java.util.Comparator;

/**
 * <p>Project: javaseapp - MyDemo
 * <p>Powered by webrx On 2021-08-24 11:26:24
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class MyDemo {
    public static void main(String[] args) {
        //24352  zhang
        System.out.println((int) ('张'));
        //26446 li
        System.out.println((int) ('李'));
        //29579 wang
        System.out.println((int) ('王'));
        //21608 zhou
        System.out.println((int) ('周'));
        //23433 an
        System.out.println((int) ('安'));

        var list = new ArrayList<String>();
        list.add("张");
        list.add("李");
        list.add("周三");
        list.add("王四");
        list.add("安");
        System.out.println(list);
        list.sort(String::compareTo);
        System.out.println(list);
        list.sort(Comparator.reverseOrder());
        System.out.println(list);
    }
}
